package ooExercise.ooday04;

public class Fish extends Animal implements Swim {
    public Fish(String name, int age, String color,String food) {
        super(name, age, color,food);
    }

    @Override
    void eat() {
        System.out.println("一只"+color+"颜色,今年"+age+"岁了,名字叫"+name+"的大白鲨,正在深海里吃"+food);
    }
    public void swim(){
        System.out.println("有一只大白鲨,名字叫"+name+"的,是"+color+"颜色的,它今年"+age+"岁了,现在正深海里肆无忌惮的游泳");
    }
}
